package com.fanxing.generics;

public class Test06 {

    public static void main(String[] args) {
        /*G7<String> g7 = new G7<>();
        show(g7);*/

        G7<Integer> g61 = new G7<>();
        show(g61);

        G7<Number> g7 = new G7<>();
        show(g7);

        G7<Object> g8 = new G7<>();
        // show(g8);
    }

    public static void show(G7< ? extends Number> g7){
        System.out.println(g7.t);
    }

/*    public static void show1(G6<Integer> g6){
        System.out.println(g6.t);
    }*/
}

class G7<T>{
    T t;
}
